//this引用
//this和super的区别？
/*
public class Date {
   */
/* public int year;
    public int month;
    public int day;
    public void setDate(int y,int m,int d){
        year=y;
        month=m;
        day=d;
    }
    public void setDate2(int year,int month,int day){//year-局部变量
        //局部变量优先-->自己给自己赋值
        year=year;//0
        month=month;//0
        day=day;//0
    }*//*

    //解决方法-->加this
  */
/*  public void setDate3(int year,int month,int day){//year-局部变量
        //局部变量优先-->自己给自己赋值
        //访问当前对象的属性-->加this
        //谁调用的setDate方法，谁就是this
        //this只能在成员方法中使用，在成员方法中，this只能引用当前对象，不能再引用其他对象
        this.year=year;//0
        this.month=month;//0
        this.day=day;//0
    }
    public void printDate(){
        System.out.println("年："+this.year+"月："+this.month+"日"+this.day);
    }
*//*

    public static void main(String[] args){
       */
/* Date date=new Date();
        date.setDate2(2008,8,8);
        date.printDate();*//*



    }
}

*/

/*public class Date{
    public static void main(String args[]) {
        int i = 10;
        boolean x = false && (i == 10);
        boolean y = true & (i < 10);
        System.out.println("x = " + x + "; y = " + y);
    }
}*/
/*public class Date {
    public static void main(String args[]) {
        int i = 10;
        boolean x = true || (i > 10);
        boolean y = false | (i == 10);
        System.out.println("x = " + x + "; y = " + y);
    }
}*/

/*public class Date{
    public static void main(String args[]){
        int m=();
        switch(m) {
            case 0:
                System.out.print("0");
                break;
            case 1:
                System.out.print("1");
            case 2:
            default:
                System.out.print("over");
        }
    }
}*/

public class Date {
    public static void main(String args[]) {
        int i;
        for (i = 0; i < 4; i++) {
            if (i == 2)
                break;
            System.out.print(i);
        }
        System.out.println(i);
    }
}





















